import time

import uiautomator2 as u2

d = u2.connect("192.168.0.101")
# 默认
if not d.info["screenOn"]:
    d.screen_on()
    d.swipe_ext("up")

time.sleep(1)
d.press("home")
time.sleep(1)
d.press("home")
time.sleep(1)


# 测试
def open_atx():
    d.swipe_ext("left", scale=0.9)
    d.xpath("ATX").click()


open_atx()
